package com.itany.corejava.day03;

public class Test8 {

    public static void main(String[] args) {

        for (int i = 12709; i <= 45368; i++) {
            int a=i/10000;
            int b=i/1000%10;
            int c=i/100%10;
            int d=i/10%10;
            int e=i%10;

            int sum=a+b+c+d+e;

            if(sum%5==0){
                System.out.println(i);
            }
        }

    }

}
